package com.ctz.commonframe.ui.widget;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;


public class DialogFactory {
	public static void showDownloadDialog(final Context context, final DialogInterface.OnClickListener positiveListener){
		AlertDialog.Builder builder = new Builder(context);
		builder.setMessage("是否确认下载？");
		builder.setTitle("提示");
		builder.setPositiveButton("确认", positiveListener)
		.setNegativeButton("取消", new DialogInterface.OnClickListener(){

			@Override
			public void onClick(DialogInterface dialog, int arg1) {
				dialog.dismiss();
			}
		}).create().show();
	}
}
